import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/double_control/get_control_measures_all_details_entity.dart';

GetControlMeasuresAllDetailsEntity $GetControlMeasuresAllDetailsEntityFromJson(Map<String, dynamic> json) {
  final GetControlMeasuresAllDetailsEntity getControlMeasuresAllDetailsEntity = GetControlMeasuresAllDetailsEntity();
  final String? riskObjectName = jsonConvert.convert<String>(json['riskObjectName']);
  if (riskObjectName != null) {
    getControlMeasuresAllDetailsEntity.riskObjectName = riskObjectName;
  }
  final String? objectHazardDep = jsonConvert.convert<String>(json['objectHazardDep']);
  if (objectHazardDep != null) {
    getControlMeasuresAllDetailsEntity.objectHazardDep = objectHazardDep;
  }
  final String? objectHazardLiablePerson = jsonConvert.convert<String>(json['objectHazardLiablePerson']);
  if (objectHazardLiablePerson != null) {
    getControlMeasuresAllDetailsEntity.objectHazardLiablePerson = objectHazardLiablePerson;
  }
  final String? riskUnitName = jsonConvert.convert<String>(json['riskUnitName']);
  if (riskUnitName != null) {
    getControlMeasuresAllDetailsEntity.riskUnitName = riskUnitName;
  }
  final String? unitHazardLiablePerson = jsonConvert.convert<String>(json['unitHazardLiablePerson']);
  if (unitHazardLiablePerson != null) {
    getControlMeasuresAllDetailsEntity.unitHazardLiablePerson = unitHazardLiablePerson;
  }
  final String? unitHazardDep = jsonConvert.convert<String>(json['unitHazardDep']);
  if (unitHazardDep != null) {
    getControlMeasuresAllDetailsEntity.unitHazardDep = unitHazardDep;
  }
  final String? riskEventName = jsonConvert.convert<String>(json['riskEventName']);
  if (riskEventName != null) {
    getControlMeasuresAllDetailsEntity.riskEventName = riskEventName;
  }
  final int? initialRiskConsequences = jsonConvert.convert<int>(json['initialRiskConsequences']);
  if (initialRiskConsequences != null) {
    getControlMeasuresAllDetailsEntity.initialRiskConsequences = initialRiskConsequences;
  }
  final int? initialRiskDegree = jsonConvert.convert<int>(json['initialRiskDegree']);
  if (initialRiskDegree != null) {
    getControlMeasuresAllDetailsEntity.initialRiskDegree = initialRiskDegree;
  }
  final int? initialRiskPossibility = jsonConvert.convert<int>(json['initialRiskPossibility']);
  if (initialRiskPossibility != null) {
    getControlMeasuresAllDetailsEntity.initialRiskPossibility = initialRiskPossibility;
  }
  final String? initialRiskLevel = jsonConvert.convert<String>(json['initialRiskLevel']);
  if (initialRiskLevel != null) {
    getControlMeasuresAllDetailsEntity.initialRiskLevel = initialRiskLevel;
  }
  final String? riskMeasureDesc = jsonConvert.convert<String>(json['riskMeasureDesc']);
  if (riskMeasureDesc != null) {
    getControlMeasuresAllDetailsEntity.riskMeasureDesc = riskMeasureDesc;
  }
  final String? dataSrc = jsonConvert.convert<String>(json['dataSrc']);
  if (dataSrc != null) {
    getControlMeasuresAllDetailsEntity.dataSrc = dataSrc;
  }
  final int? consequenceReduction = jsonConvert.convert<int>(json['consequenceReduction']);
  if (consequenceReduction != null) {
    getControlMeasuresAllDetailsEntity.consequenceReduction = consequenceReduction;
  }
  final int? probabilityReduction = jsonConvert.convert<int>(json['probabilityReduction']);
  if (probabilityReduction != null) {
    getControlMeasuresAllDetailsEntity.probabilityReduction = probabilityReduction;
  }
  final String? classify1 = jsonConvert.convert<String>(json['classify1']);
  if (classify1 != null) {
    getControlMeasuresAllDetailsEntity.classify1 = classify1;
  }
  final dynamic classify2 = json['classify2'];
  if (classify2 != null) {
    getControlMeasuresAllDetailsEntity.classify2 = classify2;
  }
  final String? classify3 = jsonConvert.convert<String>(json['classify3']);
  if (classify3 != null) {
    getControlMeasuresAllDetailsEntity.classify3 = classify3;
  }
  final String? troubleshootContent = jsonConvert.convert<String>(json['troubleshootContent']);
  if (troubleshootContent != null) {
    getControlMeasuresAllDetailsEntity.troubleshootContent = troubleshootContent;
  }
  final List<GetControlMeasuresAllDetailsTbBaseMeasuresTaskList>? tbBaseMeasuresTaskList = (json['tbBaseMeasuresTaskList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetControlMeasuresAllDetailsTbBaseMeasuresTaskList>(e) as GetControlMeasuresAllDetailsTbBaseMeasuresTaskList).toList();
  if (tbBaseMeasuresTaskList != null) {
    getControlMeasuresAllDetailsEntity.tbBaseMeasuresTaskList = tbBaseMeasuresTaskList;
  }
  final String? riskMeasureLevel = jsonConvert.convert<String>(json['riskMeasureLevel']);
  if (riskMeasureLevel != null) {
    getControlMeasuresAllDetailsEntity.riskMeasureLevel = riskMeasureLevel;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getControlMeasuresAllDetailsEntity.createDate = createDate;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getControlMeasuresAllDetailsEntity.createBy = createBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getControlMeasuresAllDetailsEntity.updateDate = updateDate;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getControlMeasuresAllDetailsEntity.updateBy = updateBy;
  }
  return getControlMeasuresAllDetailsEntity;
}

Map<String, dynamic> $GetControlMeasuresAllDetailsEntityToJson(GetControlMeasuresAllDetailsEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['riskObjectName'] = entity.riskObjectName;
  data['objectHazardDep'] = entity.objectHazardDep;
  data['objectHazardLiablePerson'] = entity.objectHazardLiablePerson;
  data['riskUnitName'] = entity.riskUnitName;
  data['unitHazardLiablePerson'] = entity.unitHazardLiablePerson;
  data['unitHazardDep'] = entity.unitHazardDep;
  data['riskEventName'] = entity.riskEventName;
  data['initialRiskConsequences'] = entity.initialRiskConsequences;
  data['initialRiskDegree'] = entity.initialRiskDegree;
  data['initialRiskPossibility'] = entity.initialRiskPossibility;
  data['initialRiskLevel'] = entity.initialRiskLevel;
  data['riskMeasureDesc'] = entity.riskMeasureDesc;
  data['dataSrc'] = entity.dataSrc;
  data['consequenceReduction'] = entity.consequenceReduction;
  data['probabilityReduction'] = entity.probabilityReduction;
  data['classify1'] = entity.classify1;
  data['classify2'] = entity.classify2;
  data['classify3'] = entity.classify3;
  data['troubleshootContent'] = entity.troubleshootContent;
  data['tbBaseMeasuresTaskList'] = entity.tbBaseMeasuresTaskList?.map((v) => v.toJson()).toList();
  data['riskMeasureLevel'] = entity.riskMeasureLevel;
  data['createDate'] = entity.createDate;
  data['createBy'] = entity.createBy;
  data['updateDate'] = entity.updateDate;
  data['updateBy'] = entity.updateBy;
  return data;
}

extension GetControlMeasuresAllDetailsEntityExtension on GetControlMeasuresAllDetailsEntity {
  GetControlMeasuresAllDetailsEntity copyWith({
    String? riskObjectName,
    String? objectHazardDep,
    String? objectHazardLiablePerson,
    String? riskUnitName,
    String? unitHazardLiablePerson,
    String? unitHazardDep,
    String? riskEventName,
    int? initialRiskConsequences,
    int? initialRiskDegree,
    int? initialRiskPossibility,
    String? initialRiskLevel,
    String? riskMeasureDesc,
    String? dataSrc,
    int? consequenceReduction,
    int? probabilityReduction,
    String? classify1,
    dynamic classify2,
    String? classify3,
    String? troubleshootContent,
    List<GetControlMeasuresAllDetailsTbBaseMeasuresTaskList>? tbBaseMeasuresTaskList,
    String? riskMeasureLevel,
    String? createDate,
    String? createBy,
    String? updateDate,
    String? updateBy,
  }) {
    return GetControlMeasuresAllDetailsEntity()
      ..riskObjectName = riskObjectName ?? this.riskObjectName
      ..objectHazardDep = objectHazardDep ?? this.objectHazardDep
      ..objectHazardLiablePerson = objectHazardLiablePerson ?? this.objectHazardLiablePerson
      ..riskUnitName = riskUnitName ?? this.riskUnitName
      ..unitHazardLiablePerson = unitHazardLiablePerson ?? this.unitHazardLiablePerson
      ..unitHazardDep = unitHazardDep ?? this.unitHazardDep
      ..riskEventName = riskEventName ?? this.riskEventName
      ..initialRiskConsequences = initialRiskConsequences ?? this.initialRiskConsequences
      ..initialRiskDegree = initialRiskDegree ?? this.initialRiskDegree
      ..initialRiskPossibility = initialRiskPossibility ?? this.initialRiskPossibility
      ..initialRiskLevel = initialRiskLevel ?? this.initialRiskLevel
      ..riskMeasureDesc = riskMeasureDesc ?? this.riskMeasureDesc
      ..dataSrc = dataSrc ?? this.dataSrc
      ..consequenceReduction = consequenceReduction ?? this.consequenceReduction
      ..probabilityReduction = probabilityReduction ?? this.probabilityReduction
      ..classify1 = classify1 ?? this.classify1
      ..classify2 = classify2 ?? this.classify2
      ..classify3 = classify3 ?? this.classify3
      ..troubleshootContent = troubleshootContent ?? this.troubleshootContent
      ..tbBaseMeasuresTaskList = tbBaseMeasuresTaskList ?? this.tbBaseMeasuresTaskList
      ..riskMeasureLevel = riskMeasureLevel ?? this.riskMeasureLevel
      ..createDate = createDate ?? this.createDate
      ..createBy = createBy ?? this.createBy
      ..updateDate = updateDate ?? this.updateDate
      ..updateBy = updateBy ?? this.updateBy;
  }
}

GetControlMeasuresAllDetailsTbBaseMeasuresTaskList $GetControlMeasuresAllDetailsTbBaseMeasuresTaskListFromJson(Map<String, dynamic> json) {
  final GetControlMeasuresAllDetailsTbBaseMeasuresTaskList getControlMeasuresAllDetailsTbBaseMeasuresTaskList = GetControlMeasuresAllDetailsTbBaseMeasuresTaskList();
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.id = id;
  }
  final String? riskObjectId = jsonConvert.convert<String>(json['riskObjectId']);
  if (riskObjectId != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.riskObjectId = riskObjectId;
  }
  final String? riskObjectName = jsonConvert.convert<String>(json['riskObjectName']);
  if (riskObjectName != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.riskObjectName = riskObjectName;
  }
  final String? riskUnitId = jsonConvert.convert<String>(json['riskUnitId']);
  if (riskUnitId != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.riskUnitId = riskUnitId;
  }
  final String? riskUnitName = jsonConvert.convert<String>(json['riskUnitName']);
  if (riskUnitName != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.riskUnitName = riskUnitName;
  }
  final String? riskEventId = jsonConvert.convert<String>(json['riskEventId']);
  if (riskEventId != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.riskEventId = riskEventId;
  }
  final String? riskEventName = jsonConvert.convert<String>(json['riskEventName']);
  if (riskEventName != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.riskEventName = riskEventName;
  }
  final String? riskMeasureId = jsonConvert.convert<String>(json['riskMeasureId']);
  if (riskMeasureId != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.riskMeasureId = riskMeasureId;
  }
  final String? riskMeasureName = jsonConvert.convert<String>(json['riskMeasureName']);
  if (riskMeasureName != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.riskMeasureName = riskMeasureName;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.companyCode = companyCode;
  }
  final String? allocationId = jsonConvert.convert<String>(json['allocationId']);
  if (allocationId != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.allocationId = allocationId;
  }
  final String? allocationName = jsonConvert.convert<String>(json['allocationName']);
  if (allocationName != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.allocationName = allocationName;
  }
  final String? allocationType = jsonConvert.convert<String>(json['allocationType']);
  if (allocationType != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.allocationType = allocationType;
  }
  final String? season = jsonConvert.convert<String>(json['season']);
  if (season != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.season = season;
  }
  final String? troubleshootContent = jsonConvert.convert<String>(json['troubleshootContent']);
  if (troubleshootContent != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.troubleshootContent = troubleshootContent;
  }
  final String? workType = jsonConvert.convert<String>(json['workType']);
  if (workType != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.workType = workType;
  }
  final String? controlMeasures = jsonConvert.convert<String>(json['controlMeasures']);
  if (controlMeasures != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.controlMeasures = controlMeasures;
  }
  final String? workKind = jsonConvert.convert<String>(json['workKind']);
  if (workKind != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.workKind = workKind;
  }
  final String? taskNum = jsonConvert.convert<String>(json['taskNum']);
  if (taskNum != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.taskNum = taskNum;
  }
  final String? taskStatus = jsonConvert.convert<String>(json['taskStatus']);
  if (taskStatus != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.taskStatus = taskStatus;
  }
  final String? checkCycle = jsonConvert.convert<String>(json['checkCycle']);
  if (checkCycle != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.checkCycle = checkCycle;
  }
  final String? checkCycleUnit = jsonConvert.convert<String>(json['checkCycleUnit']);
  if (checkCycleUnit != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.checkCycleUnit = checkCycleUnit;
  }
  final String? workStartTime = jsonConvert.convert<String>(json['workStartTime']);
  if (workStartTime != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.workStartTime = workStartTime;
  }
  final String? workEndTime = jsonConvert.convert<String>(json['workEndTime']);
  if (workEndTime != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.workEndTime = workEndTime;
  }
  final String? workDayType = jsonConvert.convert<String>(json['workDayType']);
  if (workDayType != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.workDayType = workDayType;
  }
  final String? instrumentId = jsonConvert.convert<String>(json['instrumentId']);
  if (instrumentId != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.instrumentId = instrumentId;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.deleted = deleted;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.createDate = createDate;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.createById = createById;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.updateDate = updateDate;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.updateBy = updateBy;
  }
  final String? hazardCode = jsonConvert.convert<String>(json['hazardCode']);
  if (hazardCode != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.hazardCode = hazardCode;
  }
  final String? checkMeans = jsonConvert.convert<String>(json['checkMeans']);
  if (checkMeans != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.checkMeans = checkMeans;
  }
  final int? status = jsonConvert.convert<int>(json['status']);
  if (status != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.status = status;
  }
  final int? inspectionStatus = jsonConvert.convert<int>(json['inspectionStatus']);
  if (inspectionStatus != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.inspectionStatus = inspectionStatus;
  }
  final dynamic effectiveTime = json['effectiveTime'];
  if (effectiveTime != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.effectiveTime = effectiveTime;
  }
  final int? controllable = jsonConvert.convert<int>(json['controllable']);
  if (controllable != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.controllable = controllable;
  }
  final String? departmentId = jsonConvert.convert<String>(json['departmentId']);
  if (departmentId != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.departmentId = departmentId;
  }
  final String? userId = jsonConvert.convert<String>(json['userId']);
  if (userId != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.userId = userId;
  }
  final String? warehouseId = jsonConvert.convert<String>(json['warehouseId']);
  if (warehouseId != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.warehouseId = warehouseId;
  }
  final String? startRefreshTime = jsonConvert.convert<String>(json['startRefreshTime']);
  if (startRefreshTime != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.startRefreshTime = startRefreshTime;
  }
  final String? endRefreshTime = jsonConvert.convert<String>(json['endRefreshTime']);
  if (endRefreshTime != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.endRefreshTime = endRefreshTime;
  }
  final int? isUpload = jsonConvert.convert<int>(json['isUpload']);
  if (isUpload != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.isUpload = isUpload;
  }
  final int? isApprove = jsonConvert.convert<int>(json['isApprove']);
  if (isApprove != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.isApprove = isApprove;
  }
  final dynamic taskTimeNodeTables = json['taskTimeNodeTables'];
  if (taskTimeNodeTables != null) {
    getControlMeasuresAllDetailsTbBaseMeasuresTaskList.taskTimeNodeTables = taskTimeNodeTables;
  }
  return getControlMeasuresAllDetailsTbBaseMeasuresTaskList;
}

Map<String, dynamic> $GetControlMeasuresAllDetailsTbBaseMeasuresTaskListToJson(GetControlMeasuresAllDetailsTbBaseMeasuresTaskList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['riskObjectId'] = entity.riskObjectId;
  data['riskObjectName'] = entity.riskObjectName;
  data['riskUnitId'] = entity.riskUnitId;
  data['riskUnitName'] = entity.riskUnitName;
  data['riskEventId'] = entity.riskEventId;
  data['riskEventName'] = entity.riskEventName;
  data['riskMeasureId'] = entity.riskMeasureId;
  data['riskMeasureName'] = entity.riskMeasureName;
  data['companyCode'] = entity.companyCode;
  data['allocationId'] = entity.allocationId;
  data['allocationName'] = entity.allocationName;
  data['allocationType'] = entity.allocationType;
  data['season'] = entity.season;
  data['troubleshootContent'] = entity.troubleshootContent;
  data['workType'] = entity.workType;
  data['controlMeasures'] = entity.controlMeasures;
  data['workKind'] = entity.workKind;
  data['taskNum'] = entity.taskNum;
  data['taskStatus'] = entity.taskStatus;
  data['checkCycle'] = entity.checkCycle;
  data['checkCycleUnit'] = entity.checkCycleUnit;
  data['workStartTime'] = entity.workStartTime;
  data['workEndTime'] = entity.workEndTime;
  data['workDayType'] = entity.workDayType;
  data['instrumentId'] = entity.instrumentId;
  data['deleted'] = entity.deleted;
  data['createDate'] = entity.createDate;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  data['updateBy'] = entity.updateBy;
  data['hazardCode'] = entity.hazardCode;
  data['checkMeans'] = entity.checkMeans;
  data['status'] = entity.status;
  data['inspectionStatus'] = entity.inspectionStatus;
  data['effectiveTime'] = entity.effectiveTime;
  data['controllable'] = entity.controllable;
  data['departmentId'] = entity.departmentId;
  data['userId'] = entity.userId;
  data['warehouseId'] = entity.warehouseId;
  data['startRefreshTime'] = entity.startRefreshTime;
  data['endRefreshTime'] = entity.endRefreshTime;
  data['isUpload'] = entity.isUpload;
  data['isApprove'] = entity.isApprove;
  data['taskTimeNodeTables'] = entity.taskTimeNodeTables;
  return data;
}

extension GetControlMeasuresAllDetailsTbBaseMeasuresTaskListExtension on GetControlMeasuresAllDetailsTbBaseMeasuresTaskList {
  GetControlMeasuresAllDetailsTbBaseMeasuresTaskList copyWith({
    String? id,
    String? riskObjectId,
    String? riskObjectName,
    String? riskUnitId,
    String? riskUnitName,
    String? riskEventId,
    String? riskEventName,
    String? riskMeasureId,
    String? riskMeasureName,
    String? companyCode,
    String? allocationId,
    String? allocationName,
    String? allocationType,
    String? season,
    String? troubleshootContent,
    String? workType,
    String? controlMeasures,
    String? workKind,
    String? taskNum,
    String? taskStatus,
    String? checkCycle,
    String? checkCycleUnit,
    String? workStartTime,
    String? workEndTime,
    String? workDayType,
    String? instrumentId,
    String? deleted,
    String? createDate,
    String? createBy,
    String? createById,
    String? updateById,
    String? updateDate,
    String? updateBy,
    String? hazardCode,
    String? checkMeans,
    int? status,
    int? inspectionStatus,
    dynamic effectiveTime,
    int? controllable,
    String? departmentId,
    String? userId,
    String? warehouseId,
    String? startRefreshTime,
    String? endRefreshTime,
    int? isUpload,
    int? isApprove,
    dynamic taskTimeNodeTables,
  }) {
    return GetControlMeasuresAllDetailsTbBaseMeasuresTaskList()
      ..id = id ?? this.id
      ..riskObjectId = riskObjectId ?? this.riskObjectId
      ..riskObjectName = riskObjectName ?? this.riskObjectName
      ..riskUnitId = riskUnitId ?? this.riskUnitId
      ..riskUnitName = riskUnitName ?? this.riskUnitName
      ..riskEventId = riskEventId ?? this.riskEventId
      ..riskEventName = riskEventName ?? this.riskEventName
      ..riskMeasureId = riskMeasureId ?? this.riskMeasureId
      ..riskMeasureName = riskMeasureName ?? this.riskMeasureName
      ..companyCode = companyCode ?? this.companyCode
      ..allocationId = allocationId ?? this.allocationId
      ..allocationName = allocationName ?? this.allocationName
      ..allocationType = allocationType ?? this.allocationType
      ..season = season ?? this.season
      ..troubleshootContent = troubleshootContent ?? this.troubleshootContent
      ..workType = workType ?? this.workType
      ..controlMeasures = controlMeasures ?? this.controlMeasures
      ..workKind = workKind ?? this.workKind
      ..taskNum = taskNum ?? this.taskNum
      ..taskStatus = taskStatus ?? this.taskStatus
      ..checkCycle = checkCycle ?? this.checkCycle
      ..checkCycleUnit = checkCycleUnit ?? this.checkCycleUnit
      ..workStartTime = workStartTime ?? this.workStartTime
      ..workEndTime = workEndTime ?? this.workEndTime
      ..workDayType = workDayType ?? this.workDayType
      ..instrumentId = instrumentId ?? this.instrumentId
      ..deleted = deleted ?? this.deleted
      ..createDate = createDate ?? this.createDate
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..updateBy = updateBy ?? this.updateBy
      ..hazardCode = hazardCode ?? this.hazardCode
      ..checkMeans = checkMeans ?? this.checkMeans
      ..status = status ?? this.status
      ..inspectionStatus = inspectionStatus ?? this.inspectionStatus
      ..effectiveTime = effectiveTime ?? this.effectiveTime
      ..controllable = controllable ?? this.controllable
      ..departmentId = departmentId ?? this.departmentId
      ..userId = userId ?? this.userId
      ..warehouseId = warehouseId ?? this.warehouseId
      ..startRefreshTime = startRefreshTime ?? this.startRefreshTime
      ..endRefreshTime = endRefreshTime ?? this.endRefreshTime
      ..isUpload = isUpload ?? this.isUpload
      ..isApprove = isApprove ?? this.isApprove
      ..taskTimeNodeTables = taskTimeNodeTables ?? this.taskTimeNodeTables;
  }
}
